﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:s="clr-namespace:System;assembly=mscorlib"
					xmlns:local="clr-namespace:Docentric.Examples.Browser">


	
	<!-- GroupBoxTemplate -->
	<ControlTemplate x:Key="GroupBoxTemplate" TargetType="{x:Type GroupBox}">
		<Border Grid.Row="0" Grid.RowSpan="2"
				BorderThickness="1" BorderBrush="#2b3c59" CornerRadius="3,3,0,0">
			<Grid>
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto"/>
					<RowDefinition Height="*"/>
				</Grid.RowDefinitions>

				<Border Grid.Row="0"
						CornerRadius="3,3,0,0"
						TextBlock.Foreground="White" TextBlock.FontSize="12">
					<Border.Background>
						<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
							<GradientStop Offset="0" Color="#8483A8" />
							<GradientStop Offset="0.08" Color="#646390" />
							<GradientStop Offset="0.08" Color="#4D4B81" />
							<GradientStop Offset="0.9" Color="#3F3E77" />
							
							<GradientStop Offset="0.9" Color="#252453" />
							<GradientStop Offset="1" Color="#14133D" />
						</LinearGradientBrush>
					</Border.Background>

					<ContentPresenter Margin="2"
									  ContentSource="Header"
									  RecognizesAccessKey="True" />
				</Border>

				<Border Grid.Row="1" Background="{TemplateBinding Background}">
					<ContentPresenter />
				</Border>
			</Grid>
		</Border>
	</ControlTemplate>



	<!-- ***** Control styles ***** -->
	<Style TargetType="{x:Type Label}">
		<Setter Property="Margin" Value="2"/>
		<Setter Property="HorizontalAlignment" Value="Right"/>
	</Style>

	<Style TargetType="{x:Type TextBox}">
		<Setter Property="Margin" Value="2"/>
	</Style>

	<Style TargetType="{x:Type TextBlock}">
		<Setter Property="Margin" Value="2"/>
	</Style>

	<Style TargetType="{x:Type PasswordBox}">
		<Setter Property="Margin" Value="2"/>
	</Style>

	<Style TargetType="{x:Type ComboBox}">
		<Setter Property="Margin" Value="2"/>
	</Style>

	<Style TargetType="{x:Type CheckBox}">
		<Setter Property="Margin" Value="2"/>
		<Setter Property="VerticalAlignment" Value="Center"/>
	</Style>

	<Style TargetType="{x:Type Button}">
		<Setter Property="Margin" Value="2"/>
	</Style>

	
	
	
	<!-- Value Converters -->
	<local:BoolInversionConverter x:Key="BoolInversionConverter" />
	<local:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter_Invert" InvertWithNotOperator="True" />
</ResourceDictionary>